//
//  UIImage+RKImgCategory.h
//  WuyouTang
//
//  Created by YB007 on 2019/8/15.
//  Copyright © 2019 cat. All rights reserved.
//

#import <UIKit/UIKit.h>



@interface UIImage (RKImgCategory)

typedef NS_ENUM(NSUInteger, RKGradientType) {
    RKGradientTypeTopToBottom = 0,//从上到下
    RKGradientTypeLeftToRight = 1,//从左到右
    RKGradientTypeUpleftToLowright = 2,//左上到右下
    RKGradientTypeUprightToLowleft = 3,//右上到左下
};
/**  设置图片的渐变色(颜色->图片)
@param colors 渐变颜色数组  @param gradientType 渐变样式  @param imgSize 图片大小  @return 颜色->图片  */
+ (UIImage *)rk_gradientColorImageFromColors:(NSArray*)colors gradientType:(RKGradientType)gradientType imgSize:(CGSize)imgSize;


@end


